import request from "@/utils/request";

// 查询列表
export function getList(data) {
  return request({
    url: "/base/flow/task/backlog/page",
    method: "get",
    params: data,
  });
}

// 项目立项申请单
export function getList1(data) {
  return request({
    url: "/business/collect/applicationForm/detail?id=" + data,
    method: "post",
  });
}
// 流程 实例 同意审批
export function approve(data) {
  return request({
    url: "/base/flow/task/approve",
    method: "post",
    params: data,
  });
}
// 流程 实例 拒绝审批
export function rejected(data) {
  return request({
    url: "/base/flow/task/rejected",
    method: "post",
    params: data,
  });
}
export function modeuleList(data) {
  return request({
    url: "/base/flow/template/page",
    method: "get",
    params: {...data, pageSize: 999},
  });
}
